package com.demo.module.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("t_role")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键   123
     */
    @TableId(value = "id")
    private Long id;

    private Long userId;

    private String roleName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public Role(Long userId, String roleName, LocalDateTime createTime, LocalDateTime updateTime) {
        this.userId = userId;
        this.roleName = roleName;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
